<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Plik źródłowy outputs.h (r58/r57)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
<h1>outputs.h (r58/r57)</h1><a href="outputs_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    Aquamat - Sterownik akwariowy Open Source</span>
<a name="l00003"></a>00003 <span class="comment">    Copyright (C) 2009 Wojciech Todryk (wojciech@todryk.pl)</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This program is free software; you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment">    the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">    (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment">    along with this program; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment">    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00018"></a>00018 <span class="comment">    </span>
<a name="l00019"></a>00019 <span class="comment">    $Id$</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="outputs_8h.html#a6858ef646841f0e77501e064c8515bc4">00022</a> <span class="preprocessor">#define OUTPUTS_DEVICES_NUM 2</span>
<a name="l00023"></a><a class="code" href="outputs_8h.html#a94a9135e83975ca8aa530df8fc463869">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUTS_NUM_PER_DEVICE 8</span>
<a name="l00024"></a><a class="code" href="outputs_8h.html#a394664871fe15c04f05b311604ec5091">00024</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUTS_NUM (OUTPUTS_DEVICES_NUM * OUTPUTS_NUM_PER_DEVICE)</span>
<a name="l00025"></a><a class="code" href="outputs_8h.html#a92a63185420f852823d2623ca57a606c">00025</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUTS_CHANGE_FLAG 7</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a><a class="code" href="outputs_8h.html#a0efa4989428b387feda9ae6b90404425">00027</a> <span class="preprocessor">#define OUTPUTS_DEVICE_LV_ADDR 0x71</span>
<a name="l00028"></a><a class="code" href="outputs_8h.html#ae004f3f2fef511dc448646268dcd27f6">00028</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUTS_DEVICE_HV_ADDR 0x41</span>
<a name="l00029"></a><a class="code" href="outputs_8h.html#ae9f4c8d1b0bc174ef2185e182a73867f">00029</a> <span class="preprocessor"></span><span class="preprocessor">#define SETOF(x) outputs_flags |= _BV(x)</span>
<a name="l00030"></a><a class="code" href="outputs_8h.html#a44710869c8c2dbd7557d0c3832f7998a">00030</a> <span class="preprocessor"></span><span class="preprocessor">#define CLROF(x) outputs_flags &amp;= ~_BV(x)</span>
<a name="l00031"></a><a class="code" href="outputs_8h.html#afae846e6b85ba4cda3437887ec29394b">00031</a> <span class="preprocessor"></span><span class="preprocessor">#define CHKOF(x) outputs_flags &amp; _BV(x)</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="outputs_8h.html#a6f0580a3b75818aec82f2b2f17f07f55">00033</a> <span class="preprocessor">#define OUTPUT_CONFIG_MASK 0x0F</span>
<a name="l00034"></a><a class="code" href="outputs_8h.html#aa1b853d087d9c54a0daa7a58a827f23b">00034</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUT_ACTIVE_FLAG 7</span>
<a name="l00035"></a><a class="code" href="outputs_8h.html#abc3ba23bb7d5c432e247d8fb76676b2e">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUT_CANCEL_FLAG 6</span>
<a name="l00036"></a><a class="code" href="outputs_8h.html#aebb8ef4a18a8579a193dca05aa29f564">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUT_OVERRIDE_FLAG 5</span>
<a name="l00037"></a><a class="code" href="outputs_8h.html#a6c76fb0765ce5718c9459249bfba8a0c">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define OUTPUT_BLOCK_FLAG 3</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="structOUTPUT.html">00042</a> <span class="keyword">struct </span><a class="code" href="structOUTPUT.html" title="Struktura przechowywująca dane o wyjściu.">OUTPUT</a> {
<a name="l00063"></a><a class="code" href="structOUTPUT.html#a5b9e80c0a948e50654516489be3f35c2">00063</a>     uint8_t <a class="code" href="structOUTPUT.html#a5b9e80c0a948e50654516489be3f35c2">flags</a>;  
<a name="l00064"></a>00064 };
<a name="l00065"></a>00065 
<a name="l00085"></a>00085 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#a87b4ebc79556159d67e92592a89138e0">outputs_init</a>(<span class="keywordtype">void</span>);
<a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#ae8579dc464916362d15d5c3ef3d7db56">outputs_update</a>(<span class="keywordtype">void</span>);
<a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#aee96164cfca110d2428bcccd99d7c842">outputs_all</a>(uint8_t state);
<a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#a6d934b6b688afc965147161462788b63">outputs_block_all</a>(uint8_t state);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 uint8_t <a class="code" href="outputs_8c.html#a548083cd691983a308f7c1af01d6a079">output_check_flag</a>(uint8_t,uint8_t);
<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#a9ee1a605373369cd9aca9e3c10968c9d">output_set_flag</a>(uint8_t,uint8_t,uint8_t);
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#ae6e36c14e65fec76fe90e47c21b17adb">output_block_override</a>(uint8_t);
<a name="l00094"></a>00094 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#af57fa32641f84fe26d29e350ea094cc6">output_set</a>(uint8_t <span class="keywordtype">id</span>,uint8_t state);
<a name="l00095"></a>00095 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#a1799849f7fe619290f7a47601e5f4f32">output_toggle</a>(uint8_t <span class="keywordtype">id</span>);
<a name="l00096"></a>00096 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#a7d089f1a3a997268cdf5c9e8abfd5337">output_switch</a>(uint8_t <span class="keywordtype">id</span>,uint8_t state);
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="keywordtype">void</span> <a class="code" href="outputs_8c.html#ab0e2563301fbacc8e2b5736475521aca">outputs_assign</a>(uint8_t *,uint8_t);
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="keyword">extern</span> <span class="keyword">struct </span><a class="code" href="structOUTPUT.html" title="Struktura przechowywująca dane o wyjściu.">OUTPUT</a> <a class="code" href="outputs_8c.html#a8d5107318b3115c16d81315e03e99428">outputs</a>[<a class="code" href="commonDefs_8h.html#a394664871fe15c04f05b311604ec5091">OUTPUTS_NUM</a>];
<a name="l00101"></a>00101 <span class="keyword">extern</span> uint8_t <a class="code" href="outputs_8c.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a>;
<a name="l00102"></a>00102 
</pre></div></div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
